<?php
$userlevel = $this->session->userdata('userlevel');
$adminid = $this->session->userdata('adminid');
echo $erreur;
?>

<div id="wrapper-content">
    <table class="titrepage" width="100%">
        <tr>
            <td >La liste des admins</td>
            <td align="right">Total | <?php echo $total ?> </td>
        </tr>
    </table>
    <div align="left" id="ajouter">
        <a href="<?php echo site_url('admin/add_admin') ?>">Ajouter nouveau admin</a>
    </div>
    <table width="100%" class="list">
        <thead>
            <tr>
                <th>email</th>
                <th>Username</th>
                <th>First name</th>
                <th>Last name</th>
                <th>Action</th>
            </tr>
        </thead>
        <?php foreach ($query as $aRow): ?>
                <tr>
                    <td><?php echo $aRow['email']; ?></td>
                    <td><?php echo $aRow['username']; ?></td>
                    <td><?php echo $aRow['first_name'] ?></td>
                    <td><?php echo $aRow['last_name'] ?></td>
                    <td width="70px">
                        <a class="supprimer" href="#" ><img border="0"src="<?php echo base_url() . 'assets/admin/' ?>images/supprimer.png"/></a>
                        <div style="display:none">
                                                    		    	Confirmer <br/>
                            <a href="<?php echo site_url('admin/delete_admin' . '/' . $aRow['id'] . '/' . $per_page . '/' . $off_set); ?>"> <img border="0"src="<?php echo base_url() . 'assets/admin/' ?>images/oui.png"/></a>
                    <a class="non" href="#" ><img  border="0"src="<?php echo base_url() . 'assets/admin/' ?>images/non.png"/></a>
                </div>
            </td>
        </tr>
        <?php endforeach; ?>
            </table>
    <?php echo $pagination; ?>
</div>
<!--END wrapper-content-->
